var a = getApp();

Page({
    data: {
        dataInfo: [],
        love_name: ""
    },
    onLoad: function(a) {
        wx.setNavigationBarColor({
            frontColor: "#ffffff",
            backgroundColor: "#FF8924",
            animation: {
                duration: 400,
                timingFunc: "easeIn"
            }
        }), this.getData();
    },
    toUrl: function(a) {
        var t = a.currentTarget.dataset.type;
        (7 != t || this.data.dataInfo.sub_team_show) && (9 != t ? "taskPackageIndex" == t ? wx.navigateTo({
            url: "/packageI/taskPackage/taskPackageIndex/taskPackageIndex"
        }) : wx.navigateTo({
            url: "/packageI/taskPackage/record/record?type=" + t
        }) : wx.navigateTo({
            url: "/packageB/member/love/love_list/love_list"
        }));
    },
    copyMethod: function() {
        wx.setClipboardData({
            data: this.data.dataInfo.member_data.line_code,
            success: function(t) {
                a.tips("复制成功");
            }
        });
    },
    getData: function() {
        var t = this;
        a._getNetWork({
            url: a.getNetAddresss("plugin.task-package.frontend.index.member-data"),
            data: {},
            success: function(a) {
                var e = a.data;
                1 == e.result && (console.log(e, "ddddddddd"), t.setData({
                    dataInfo: e.data
                }));
            },
            fail: function(a) {
                console.log(a);
            }
        });
    },
    onReady: function() {},
    onShow: function() {
        var a = wx.getStorageSync("yz_basic_info");
        this.setData({
            love_name: a.love
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});